<html>
<head><meta charset="utf-8"><title>must_use impl · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/must_use.20impl.html">must_use impl</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="205875652"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/must_use%20impl/near/205875652" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Bhargav Voleti <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/must_use.20impl.html#205875652">(Aug 04 2020 at 05:58)</a>:</h4>
<p>Can anyone point me towards the implementation of the <code>#[must_use]</code> attribute? I'm not familiar enough with rustc's codebase to find it.</p>



<a name="205886567"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/must_use%20impl/near/205886567" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/must_use.20impl.html#205886567">(Aug 04 2020 at 09:16)</a>:</h4>
<p>I believe it’s declared <a href="https://github.com/rust-lang/rust/blob/b52522ade1f6979a35b24087dadcf5ba5c981cbe/src/librustc_feature/builtin_attrs.rs#L205">here</a></p>



<a name="205886602"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/must_use%20impl/near/205886602" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/must_use.20impl.html#205886602">(Aug 04 2020 at 09:16)</a>:</h4>
<p>And then implemented <a href="https://github.com/rust-lang/rust/blob/60c2e8d438f75aed5192dfa76e4b42a6739f6291/src/librustc_lint/unused.rs">here</a></p>



<a name="205925535"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/must_use%20impl/near/205925535" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Bhargav Voleti <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/must_use.20impl.html#205925535">(Aug 04 2020 at 16:01)</a>:</h4>
<p>Thank you!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>